import {$uploadFile} from '../../utils/upload'

export const getCreateCircle = ((image, name, content) => {
    return new Promise ((resolve, reject) => {
        console.log("image is " ,image);
        console.log("name is ", name);
        console.log("content is ", content);
        $uploadFile({
                filePath:image,
                url:'createcircle',
                data:{
                    name:name,
                    content:content
                }
        }).then((res) => {
            console.log("圈子创建成功",res);
            resolve(res)
        }).catch((err) => {
            console.log("圈子创建失败",err);
            reject(err)
        })
    })
})